<script>
	export default {
		onLaunch: function() {
			const token = uni.getStorageSync("token") || ''
			if(token) {
				this.$store.state.isLogin = true
				this.$store.dispatch("getUser")
				this.$store.dispatch('getCurrent', 0)
			}
		},
		onShow: function() {
			
		},
		onHide: function() {
			
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import 'style/flex.css';
	@import 'style/base.css';
	@import 'style/position.css';
	@import 'style/text.css';
	body {
		background: #fff;
		min-height: calc(100vh - var(--window-bottom) - var(--window-top));
	}
</style>
